@include("admin.layout.head")
<body>
<div class="x-body">
    <form class="layui-form" action="/admin/cates" method="post">
        {{csrf_field()}}
        <div class="layui-form-item">
            <label for="username" class="layui-form-label">
                <span class="x-red">*</span>分类名
            </label>
            <div class="layui-input-inline">
                <input type="text" id="cate" name="name" required="" lay-verify="required"
                       autocomplete="off" value="" class="layui-input">
            </div>
            <div class="layui-form-mid layui-word-aux">
                <span class="x-red">*</span>@if(count($errors)==0)将会成为唯一分类名
                                                @else
                    @foreach($errors->all() as $error)

                        <span style="color: red">{{$error}}</span>
                    @endforeach
                @endif
            </div>


        </div>

        <div class="layui-form-item">
            <label for="L_repass" class="layui-form-label">
            </label>
            <button  class="layui-btn" lay-filter="add" lay-submit="">
                增加分类
            </button>
        </div>
    </form>
</div>
</body>

</html>